package com.designpatterns.interpreter.context;

import java.util.ArrayList;
import java.util.List;

import com.designpatterns.interpreter.abstractexpression.Expression;

/**
 * Context Class
 * 
 * @author Haiqi.Wang
 * @since 2013-6-9下午2:26:58
 */
public class Context {

	// [START]attribute
	private String content;
	private List<Expression> list = new ArrayList<Expression>();

	// [END]

	// [START]getter/setter
	public void setContent(String content) {
		this.content = content;
	}

	public String getContent() {
		return content;
	}

	// [END]

	/**
	 * add method
	 * 
	 * @param eps
	 *            {@link Expression}
	 */
	public void add(Expression eps) {
		list.add(eps);
	}

	/**
	 * get list method
	 * 
	 * @return {@link Expression}
	 */
	public List<Expression> getList() {
		return list;
	}
}
